package com.zl.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//拓展SpringMVC
@Configuration
public class MyMVCConfig implements WebMvcConfigurer {
    //视图跳转
    public void addViewControllers(ViewControllerRegistry registry){
        registry.addViewController("/zl").setViewName("test");
    }
}
